/*******************************************************************************
*  file    : abstractgenerator.cpp
*  created : 13.04.2012
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#include "abstractgenerator.hpp"

TAbstractGenerator::TAbstractGenerator(QWidget *parent) :
    QWidget(parent)
{
}

bool TAbstractGenerator::fx(std::vector<double> &in, std::vector<double> &out)
{
    if(out.size() < in.size())
        return false;

    for(size_t idx = 0; idx < in.size(); ++idx)
        {
            out[idx] = fx(in[idx]);
        }
    return true;
}

#include "moc_abstractgenerator.cpp"
